<template>
  <view class="content">
    <image class="logo" src="/static/logo.png" />
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
  </view>

  <span class="test-class">
    ● 声明式导航
  ○ navigator标签进行跳转, 使用to属性
  ○  跳转到tabbar页面, 需要配合open-type="switchTab"
  ○ open-type="navigateBack" delta="层级"
● 编程式导航
  ○ wx.navigatorTo() 普通页面的跳转
  ○ wx.switchTab()跳转到tabbar页面,wx.navigateBack
● 导航传参
  ○ 通过query(?根参数 key=value&key=value)传递参数
  ○ 接收参数,通过onLoad的形参去接收
  </span>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const title = ref('GG')
</script>

<style lang="scss">
  @import '@/uni.scss';

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}

  .test-class {
    @include text-overflow(2);
  }

</style>


